package c.j.a.d.b.j;

import c.j.a.d.b.e.p;

/* compiled from: DownloadProxy */
public class q {
    public static volatile p a;
    public static volatile p b;

    public static p a(boolean z) {
        Class cls = q.class;
        if (z) {
            if (b == null) {
                synchronized (cls) {
                    if (b == null) {
                        b = new u();
                    }
                }
            }
            return b;
        }
        if (a == null) {
            synchronized (cls) {
                if (a == null) {
                    a = new v(false);
                }
            }
        }
        return a;
    }
}
